import request from '@/utils/request'

export function list(query) {
  return request({
    url: `/api/ware/wareinfo/list`,
    method: 'post',
    data: query
  })
}

export function info(id) {
  return request({
    url: `/api/ware/wareinfo/info/${id}`,
    method: 'get',
    param: id
  })
}

export function add(list) {
  return request({
    url: '/api/ware/wareinfo/save',
    method: 'post',
    data: list
  })
}

export function delMultiple(ids) {
  return request({
    url: '/api/ware/wareinfo/delete',
    method: 'post',
    data: ids
  })
}

export function update(list) {
  return request({
    url: '/api/ware/wareinfo/update',
    method: 'post',
    data: list
  })
}
